package ooday01;
/**学生类*/
public class Student extends Person {
    String className;
    String  stuId;
    int a;
    Student(){
    }
    Student(String name,int age,String address,String className,String  stuId){
        a=5;//就近原则的a
        this.a=5;//子类的a
        super.a=5;//父类的a

        super.name = name;////访问父类的属性
        super.age = age;
        super.address = address;
        this.className = className;////访问子类的属性
        this.stuId = stuId;
    }
    void study()
    {
        System.out.println(name+"正在学习");
    }
}
